package com.mk.wardsystemserver.service;

import com.mk.wardsystemserver.mapper.DepartmentMapper;
import com.mk.wardsystemserver.pojo.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mk.wardsystemserver.pojo.RespBean;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhoubin
 * @since 2022-02-24
 */
public interface IDepartmentService extends IService<Department> {

    /**
     * 获取所有部门
     * @return
     */
    List<Department> getAllDepartments();

    /**
     * 添加部门
     * @param depart
     * @return
     */
    RespBean addDepart(Department depart);

    /**
     * 删除部门
     * @param id
     * @return
     */
    RespBean deleteDepart(Integer id);
}
